package org.lds.ers.client;

import java.util.List;

import org.lds.ers.client.model.WardERSCInfo;
import org.lds.ers.client.model.WardInfo;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("ward")
public interface WardService extends RemoteService  {
	WardInfo insert(WardInfo ward) ;
	Boolean update(WardInfo ward) ;
	Boolean delete(Long id) ;
	List<WardInfo> getAll(Long stakeID);
	
	WardERSCInfo insertERSC(WardERSCInfo ersc);
	Boolean updateERSC(WardERSCInfo ward) ;
	Boolean deleteERSC(Long id) ;
	List<WardERSCInfo> getAllERSC(Long wardID);
	
	List<WardInfo> getMyWards(String userID);
}

